package cn.springcloud.fix.oauth2.autoconfigure.resource;

import java.util.List;
import java.util.Map;

import org.springframework.security.core.GrantedAuthority;

@FunctionalInterface
public interface AuthoritiesExtractor {

    /**
     * Extract(提取) the authorities from the resource server's response.
     *
     * @return the extracted authorities
     */
    List<GrantedAuthority> extractAuthorities(Map<String, Object> map);

}
